package org.dtrd.modules.flup.entity.request;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author qr
 * @date 2021/12/22 15:23
 */
@ApiModel("患者预约门诊请求")
@Getter
@Setter
public class PatientFlup {

    @ApiModelProperty(value = "记录id", notes = "更新时需要传入")
    private Integer dataId;

    @NotNull
    @Min(value = 1)
    @ApiModelProperty(value = "患者id", required = true)
    private Integer patientId;

    @NotNull
    @Min(value = 1)
    @ApiModelProperty(value = "医生id", required = true)
    private Integer doctorId;

    @NotBlank
    @ApiModelProperty(value = "预约日期", required = true)
    private String flupDate;

    /**
     * 预约日期的 Date 类型
     */
    @JsonIgnore
    private Date flupDateDate;

    @NotNull
    @Range(min = 0,max = 50)
    @ApiModelProperty(value = "预约时间段", required = true)
    private Integer flupTime;

    @NotNull
    @Min(value = 1)
    @ApiModelProperty(value = "门诊模版", required = true)
    private Integer templateId;

    @NotBlank
    @ApiModelProperty(value = "机构编码", required = true)
    private String orgCode;

    @ApiModelProperty(value = "接待人")
    private String receiver;

    @ApiModelProperty(value = "备注")
    private String remark;

}
